home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Internet / Web Things / HTML.edit 1.5b1.sit / HTML.edit.1.5b1 / HTML.edit v1.5b1 / HTML.edit v1.5b1.rsrc / TEXT_22805_A Longer Example.txt < prev    next >
Encoding:
Text File  |  1994-11-30  |  2.8 KB  |  74 lines

  1.  
  2. National Center for Supercomputing Applications
  3. A Beginner's Guide to HTML
  4.  
  5. A Longer Example
  6.  
  7. Here is a longer example of an HTML document: 
  8.  
  9.     <HEAD>
  10.     <TITLE>A Longer Example</TITLE>
  11.     </HEAD>
  12.     <BODY>
  13.     <H1>A Longer Example</H1>
  14.     This is a simple HTML document. This is the first
  15.     paragraph. <P>
  16.     This is the second paragraph, which shows special effects.  This is a 
  17.     word in <I>italics</I>.  This is a word in <B>bold</B>.
  18.     Here is an in-lined GIF image: <IMG SRC = "myimage.gif">. 
  19.     <P>
  20.     This is the third paragraph, which demonstrates links.  Here is 
  21.     a hypertext link from the word <A HREF = "subdir/myfile.html">foo</A>
  22.     to a document called "subdir/myfile.html". (If you 
  23.     try to follow this link, you will get an error screen.) <P> 
  24.     <H2>A second-level header</H2>
  25.     Here is a section of text that should display as a 
  26.     fixed-width font: <P>
  27.     <PRE>
  28.         On the stiff twig up there
  29.         Hunches a wet black rook
  30.         Arranging and rearranging its feathers in the rain ...
  31.     </PRE>
  32.     This is a unordered list with two items: <P>
  33.     <UL>
  34.     <LI> cranberries
  35.     <LI> blueberries
  36.     </UL>
  37.     This is the end of my example document.<P>
  38.     <ADDRESS>Me (me@mycomputer.univ.edu)</ADDRESS>
  39.     </BODY>
  40.  
  41. Click here to see the formatted version.
  42.  
  43. [Excluding the GIF image, here's what it might look like on a typical browser: --ma]
  44. ______
  45.  
  46. A Longer Example
  47.  
  48. This is a simple HTML document. This is the first paragraph. 
  49.  
  50. This is the second paragraph, which shows special effects. This is a word in italics . This is a word in bold. Here is an in-lined GIF image: [Ô£ø]
  51.  
  52. This is the third paragraph, which demonstrates links. Here is a hypertext link from the word foo to a document called "subdir/myfile.html". (If you try to follow this link, you will get an error screen.) 
  53.  
  54. A second-level header
  55. Here is a section of text that should display as a fixed-width font: 
  56.  
  57.         On the stiff twig up there
  58.         Hunches a wet black rook
  59.         Arranging and rearranging its feathers in the rain ...
  60.     This is a unordered list with two items: 
  61.  
  62. ‚Ä¢ cranberries 
  63. ‚Ä¢ blueberries 
  64. This is the end of my example document. 
  65.  
  66. Me (me@mycomputer.univ.edu)
  67. ______
  68.  
  69. In addition to tags already discussed, this example also uses the <HEAD> ... </HEAD> and <BODY> ... </BODY> tags, which separate the document into introductory information about the document and the main text of the document. These tags don't change the appearance of the formatted document at all, but are useful for several purposes (for example, NCSA Mosaic for Macintosh 2.0, for example, allows you to browse just the header portion of document before deciding whether to download the rest), and it is recommended that you use these tags.  
  70.  
  71. back to Troubleshooting
  72. on to For More Information
  73. return to Beginner's Guide  Contents.
  74.